package com.yili.oa.dao.extend;

import com.yili.oa.dao.UserMapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;

public interface UserExtendMapper {

    @Select("SELECT sum(bet_amount) as betAmount  FROM ft_bet_record where user_id = #{userId}")
    BigDecimal getBetAmount(Long userId);



}